package com.wuage.interfaces;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Shynin
 * @version 1.0
 * @date 9/27/21 4:41 PM
 */
@Data
public class BaseDO {
    @ApiModelProperty(value = "页码")
    private Integer current = 1;
    @ApiModelProperty("每页条数")
    private Integer size = 10;
    public <T> Page<T> page() {
        return new Page<>(current, size);
    }
}

